package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.User;

public interface UserMapper {
   //用户登录
   public User loginUser(@Param("user_name")String user_name);
   
   //新增用户
   public int addUser(User user);
   
   //查询用户ID
   public User getUserId(@Param("user_id")int user_id);
   
   //删除用户
   public int deleteUser(@Param("user_id")int user_id);
   
   //查询用户
   public List<User> getUserList();
   
   //修改用户
   public int updateUser(User user);
   
   //修改密码
   public int updatePwd(@Param("user_id")int user_id,@Param("user_password")String user_password);
   
   //注册
   public int register(User user);
}
